/**
 * Created by 10446 on 2017/7/14.
 */
var vue = new Vue({
    el:'.storyContent',
    data:{
        summarys:[]
    },
    methods:{
        mounted:function () {

        }
    }
});

function getSummary(year) {
    var url = 'http://localhost:8080/getSummary/?year='+year;
    var request = new XMLHttpRequest();
    request.open('get',url);

    request.onreadystatechange = function() {
        if (request.status === 200) {
            var res = request.responseText;
            try {
                vue.summarys = JSON.parse(res).list;
            }catch (e){

            }
        }
    }
    request.send();

}